﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace cn.school.Models.Entities;

/// <summary>
/// 学生实体类
/// </summary>
public class Student : BaseModel
{
    /// <summary>
    /// 学生姓名
    /// </summary>
    public string? Name { get; set; }
    public int? Age { get; set; }
    public short? Sex { get; set; }
    public string? Tel { get; set; }

    [Required]
    public string? Email { get; set; }

    [DefaultValue("")]
    public string? Avatar { get; set; }

    public string? Nickname { get; set; }

    public DateTime? Birthday { get; set; }
}
